<?php
require_once(dirname(__FILE__)."/db.inc");

if (strpos($_SERVER["SERVER_NAME"], "localhost") !== false)
{
	// Desarrollo
	define("BASE_DIR", "/var/www/mundiplus/admin/");
	define("SERVER_URL", "localhost:8091");
	define("CHECK_PROTOCOL", "0");
	define("SSL_PREFIX", "http://");
	error_reporting(E_ALL);
	ini_set("display_errors", "On");
}
else
{
	// Producción
	define("BASE_DIR", "/home/content/31/8500031/html/admin/");
	define("SERVER_URL", "www.mundiplus.com");
	define("CHECK_PROTOCOL", "1");
	define("SSL_PREFIX", "https://");
	error_reporting(0);
	ini_set("display_errors", "Off");
}

define("PAGE_TITLE", "Mundiplus ADMIN");
define("DEFAULT_SECTION", "home");
define("SECTIONS_WITHOUT_MENU", "login,logout");
define("AVAILABLE_LANGUAGES", "es,en");
define("DEFAULT_LANGUAGE", "es");

define("LIBRARIES_DIR", BASE_DIR."libraries/");
define("SMARTY_DIR", LIBRARIES_DIR."Smarty-3.0.7/libs/");
define("LANG_DIR", BASE_DIR."lang/");
define("INCLUDES_DIR", BASE_DIR."includes/");
define("CONF_DIR", BASE_DIR."conf/");
define("TEMPLATES_DIR", BASE_DIR."templates/");

define("BASE_URL", SSL_PREFIX.SERVER_URL."/admin/");
define("CSS_URL", BASE_URL."css/");
define("JS_URL", BASE_URL."js/");
define("IMAGES_URL", BASE_URL."images/");

// This constant points to the uploads dir of the main project, not of the admin section
define("UPLOADS_URL", SSL_PREFIX.SERVER_URL."/uploads/");
